package com.huirui.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huirui.server.pojo.dto.ProductSearchDto;
import com.huirui.server.pojo.entity.SearchLog;
import com.huirui.server.pojo.result.PageResult;
import com.huirui.server.pojo.vo.ProductBriefInfoVo;
import com.huirui.server.pojo.vo.SearchLogVo;
import jakarta.validation.Valid;

import java.util.List;

/**
 * @author yujun
 * @description 针对表【t_user_search_log(用户搜索记录表（存储所有搜索关键词，含未匹配商品的记录）)】的数据库操作Service
 * @createDate 2025-09-16 12:11:45
 */
public interface SearchLogService extends IService<SearchLog> {

    List<SearchLogVo> listTopSearches();

    PageResult<ProductBriefInfoVo> listProductsByComprehensive(@Valid ProductSearchDto productSearchDto);

    PageResult<ProductBriefInfoVo> listProductsBySales(@Valid ProductSearchDto productSearchDto);

    PageResult<ProductBriefInfoVo> listProductsByPrice(@Valid ProductSearchDto productSearchDto);

    PageResult<ProductBriefInfoVo> listProductsByTime(@Valid ProductSearchDto productSearchDto);
}
